import service from '@/utils/request'

// @Tags Dzx
// @Summary 创建Dzx
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Dzx true "创建Dzx"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /dzx/createDzx [post]
export const createDzx = (data) => {
  return service({
    url: '/dzx/createDzx',
    method: 'post',
    data
  })
}

// @Tags Dzx
// @Summary 删除Dzx
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Dzx true "删除Dzx"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /dzx/deleteDzx [delete]
export const deleteDzx = (data) => {
  return service({
    url: '/dzx/deleteDzx',
    method: 'delete',
    data
  })
}

// @Tags Dzx
// @Summary 删除Dzx
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除Dzx"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /dzx/deleteDzx [delete]
export const deleteDzxByIds = (data) => {
  return service({
    url: '/dzx/deleteDzxByIds',
    method: 'delete',
    data
  })
}

// @Tags Dzx
// @Summary 更新Dzx
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Dzx true "更新Dzx"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /dzx/updateDzx [put]
export const updateDzx = (data) => {
  return service({
    url: '/dzx/updateDzx',
    method: 'put',
    data
  })
}

// @Tags Dzx
// @Summary 用id查询Dzx
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.Dzx true "用id查询Dzx"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /dzx/findDzx [get]
export const findDzx = (params) => {
  return service({
    url: '/dzx/findDzx',
    method: 'get',
    params
  })
}

// @Tags Dzx
// @Summary 分页获取Dzx列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取Dzx列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /dzx/getDzxList [get]
export const getDzxList = (params) => {
  return service({
    url: '/dzx/getDzxList',
    method: 'get',
    params
  })
}
